﻿namespace PowerSong.UnitTests
    {
    using Microsoft.VisualStudio.TestTools.UnitTesting;
    using PowerSong.SongDatabase;

    [TestClass]
    public class DatabaseTests
        {

        [TestMethod]
        public void CreateEmptyDatabaseTest()
            {
            var database = Database.Create();
            Assert.IsNull(database.FileName);
            Assert.AreEqual(0, database.ActivityLog.GetAllActivity().Length);
            Assert.AreEqual(0, database.Categories.Count());
            Assert.AreEqual(0, database.Licenses.Count());
            Assert.IsNotNull(database.Settings);
            Assert.AreEqual(0, database.Songs.Count());
            Assert.AreEqual(0, database.Styles.Count());
            }

        }

    }
